# Copyright (C) 2006  name of Victor Igumnov
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

package Typeface;

use strict;
use warnings;

our $VERSION = '0.71';

use Cwd;
use Catalyst::Runtime '5.7014';

use Catalyst qw(
    -Debug
    StackTrace

    I18N
    Unicode

    ConfigLoader
    Nifty
    Prototype
    Captcha
    Static::Simple

    Session 
    Session::Store::FastMmap 
    Session::State::Cookie 

    Server
    Server::XMLRPC
    ProxyReplyAs

    Cache
    Cache::Store::FastMmap
    PageCache

    Authentication
    Authorization::Roles
    Authorization::ACL
);


use XML::Feed;
use HTML::CalendarMonthSimple;
use Switch;
use DateTime;
use Text::Textile;

__PACKAGE__->config->{static}->{ignore_extensions} = [qw/tt2 tt/];

# Start the application
__PACKAGE__->setup;


# Make path for Catalyst::Plugin::Textile 
sub textile {
    my $c = shift;

    my $textile = Text::Textile->new;
    $textile->charset('utf-8');

    return $textile;
}

__PACKAGE__->deny_access_unless(
    "/admin/create_category_form",
    [ qw/admin/ ],
);

1;
